package cn.ethan.demo.design;

/**
 *
 *
 * @author 张俊辉
 */
public class SsoInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandler(String request, String response, Object handler) {
        String ticket = request.substring(1, 8);
        return  "success".equals(ticket);
    }
}
